import Mock from 'mockjs'

import course from './course'

Mock.setup({
  timeout: 800 // 设置延迟响应，模拟向后端请求数据
})

const mockArr = [
  ...course,
]

mockArr.forEach(ele => {
  Mock.mock(ele.url, ele.method, ele.data)
})

